Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 83 language explanations...
NameFormat Script Containers
DescriptionFormat script containers are very simple script containers used for formatting messages.


Format_Script_Name:

    type: format

    # The only key is the format. The format can use '<[text]>' as a special def to contain the message being sent.
    # | All format scripts MUST have this key!
    format: [MyProject] <[text]>


'<[name]>' is available as a special def as well for use with the 'on player chats' event to fill the player's name properly.
Note that 'special' means special: these tags behave a little funny in certain circumstances.
In particular, these can't be used as real tags in some cases, including for example when determining a format script in the 'player chats' event.
GroupScript Container System
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/containers/core/FormatScriptContainer.java#L17